﻿/******************************************************************* 
* Copyright (C)  版权所有
* 创建时间:2019/4/29 15:48:25
* 作    者: zhenhua.shen
* 邮    箱：1025556487@qq.com
* 描    述：类功能描述
* 修改记录:修改类的记录
* 修改人:修改此类的人名称
* 版 本 号:v1.0.0
**********************************************************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using ECharts.Utility;
using Newtonsoft.Json;

namespace ECharts.ToolBox
{
    [Serializable]
    [TypeConverter(typeof(ExpandableObjectConverter))]
    [JsonConverter(typeof(NoTypeConverter<Feature>))]
    public class Feature
    {
        private Mark _mark = new Mark();
        /// <summary>
        /// 辅助线标志
        /// </summary>
        [Description("辅助线标志")]
        [NotifyParentProperty(true)]
        public Mark mark
        {
            get 
            { 
                return _mark;
            }
        }

        private DataView _dataView = new DataView();
        /// <summary>
        /// 数据视图
        /// </summary>
        [Description("数据视图")]
        [NotifyParentProperty(true)]
        public DataView dataView
        {
            get
            {
                return _dataView;
            }
        }

        private MagicType _magicType = new MagicType(); 
        /// <summary>
        /// 动态类型切换，支持直角系下的折线图、柱状图、堆积、平铺转换
        /// </summary>
        [Description("动态类型切换，支持直角系下的折线图、柱状图、堆积、平铺转换")]
        [NotifyParentProperty(true)]
        public MagicType magicType
        {
            get
            {
                return _magicType;
            }
        }


        private Restore _restore = new Restore();
        /// <summary>
        /// 还原，复位原始图表
        /// </summary>
        [Description("还原，复位原始图表")]
        [NotifyParentProperty(true)]
        public Restore restore
        {
            get
            {
                return _restore;
            }
        }

        private SaveAsImage _saveAsImage = new SaveAsImage();
        /// <summary>
        /// 保存图片（IE8-不支持）
        /// </summary>
        [Description("保存图片（IE8-不支持）")]
        [NotifyParentProperty(true)]
        public SaveAsImage saveAsImage
        {
            get
            {
                return _saveAsImage;
            }
        }
    }
}
